import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type SearchPeriod } from "../../interface";

/**
 * /dashboard/linePie/{time}/{type}
 */
export function postDashboardLinePieByTimeByType(params: PostDashboardLinePieByTimeByTypeParams, input: SearchPeriod, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<any>>(`/dashboard/linePie/${params.time}/${params.type}`, input, config);
}

export interface PostDashboardLinePieByTimeByTypeParams {
    time: string;
    type: string;
}
